<?php
/**
* 后台模板
*/
class Index extends CI_Controller
{
	function __construct(){
		parent::__construct();
		$admin_id = $this->session->userdata('admin_id');
        if ( empty($admin_id ) ) {
        	redirect('login/index','refresh');
        }
        power($admin_id);
    }
    //后台首页
	public function main() {
		$this->load->view('index/index');
	}
	function topframe(){
		$this->load->view('index/topframe');
	}
	function leftframe(){
		$data['admin_name'] = $this->session->userdata('admin_name');
		$this->load->view('index/leftframe',$data);
	}
	function switchframe(){
		$this->load->view('index/switchframe');
	}
	function mainframe(){
		$this->load->view('index/mainframe');
	}
	function manframe(){
		$this->load->view('index/manframe');
	}
}
